home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: solotmac.is.chbs!isolot
- From: Philippe Solot <isolot@chbs.ciba.com>
- Subject: DLL-interface between Borland C++ and Visual Basic : array problems
- Message-ID: <1996Jan16.133818.6347@ciba-geigy.ch>
- X-Xxmessage-Id: <AD21696779022A9B@solotmac.is.chbs>
- X-Xxdate: Tue, 16 Jan 96 13:40:39 GMT
- Sender: news@ciba-geigy.ch
- Nntp-Posting-Host: solotmac
- Organization: Ciba-Geigy Basel
- X-Useragent: Nuntius v1.1.1d24
- Date: Tue, 16 Jan 1996 13:38:18 GMT
-
- We are developing a Borland C++ function, compile it in a DLL and call it
- from Visual Basic. The function has about 40 parameters, several
- of which are more-dimensional arrays (each smaller than 64K) of
- floating-point values (VB types single or double). The arrays are passed
- by reference.
- The interface works so far since the DLL can be started. The first thing
- done
- by the DLL is to check that the numerical values defined in VB arrived
- unchanged in the DLL. When a difference occurs, the DLL returns an error
- value defined by ourselves. This now occurs; it seems to us that part of
- some
- numerical (float) arrays are not transmitted properly.
- Thanks for any help on this matter, by mail to :
- wbom@chbs.ciba.com
- kobler@dma.epfl.ch
-
-
- Dr. Ph. SOLOT
- CIba-Geigy AG
- 4002 Basel
- Switzerland
-